package com.foreknow.demo2;

import java.util.Scanner;

public class ControllerDemo5 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入成绩：");
        double score = input.nextDouble();
        System.out.println("请输入性别：");
        String gender = input.next();
        if (score <= 10)
        {
            if ("男".equals(gender)){
                System.out.println("进入男子组决赛");
            }else if ("女".equals(gender)){
                System.out.println("进入女子组决赛");
            }
        }else{
            System.out.println("被淘汰了");
        }
    }
}
